package com.example.music.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

@ApiModel(value = "订单信息实体",description = "订单具体的信息实体描述")
public class Orders {
    @ApiModelProperty("订单序号")
    private Long id;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getSta() {
        return sta;
    }

    public void setSta(String sta) {
        this.sta = sta;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    @ApiModelProperty("订单状态")
    @NotBlank(message = "订单状态不能为空")
    private String sta;
    @ApiModelProperty("订单价格")
    private Double price;
    @ApiModelProperty("订单类别")
    @NotBlank(message = "订单类别不能为空")
    @Size(min = 2,max = 20,message = "订单类别长度必须在2-20之间")
    private String category;
    @ApiModelProperty("订单品牌")
    private String brand;
}
